package com.demo.RemoteCall.FallBack;

import com.demo.RemoteCall.TaskManageRemoteCallService;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.LinkedHashMap;

@Service
public class TaskManageFallBack implements TaskManageRemoteCallService {
    /**
     * 远程过程调用
     *
     * @param params 固定活动表，和任务列表
     * @return msg, status, results
     */
    @Override
    public LinkedHashMap<String, Object> taskManage(LinkedHashMap<String, Object> params) {
        params.put("status",500);
        params.put("msg","网络繁忙");
        return params;
    }
}
